package com.example.userservice;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserServiceController {
    @GetMapping("/getUserById/{id}")
    String getUserById(@PathVariable("id") Long id){
        return "获取到id为" + id + "的用户";
    }

    @GetMapping("/test")
    String test(){
        return "收到测试请求";
    }
}
